package com.zac.springAOP;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import com.zac.basicAOP.UserService;

public class ExcuteMain {
	
	public static void main(String[] args) {
		ApplicationContext context = new ClassPathXmlApplicationContext("config.xml");
		UserService userService = (UserService) context.getBean("userService");
		userService.create("newuser", "newpassword");
		userService.login("admin", "security");
		userService.create("new_user", "a-test");
	}
	
}
